<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%
	int[] sumOverSpeed = (int [])request.getAttribute("sumOverSpeed");
	StringBuffer sumOverSpeedStrBuff = new StringBuffer();
	for(int overSpeed:sumOverSpeed){
		sumOverSpeedStrBuff.append(overSpeed + ",");
	}
	String sumOverSpeedStr = sumOverSpeedStrBuff.substring(0,sumOverSpeedStrBuff.length()-1);
	String dpathName =  (String)request.getAttribute("dpathName");
	String estartdate =  (String)request.getAttribute("estartdate");
	String eenddate =  (String)request.getAttribute("eenddate");
%>
<html>

	<script type="text/javascript"
		src="<%=request.getContextPath()%>/ofc2/swfobject.js"></script>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/ofc2/json2.js"></script>

		<script type="text/javascript"
			src="My97DatePicker/WdatePicker.js"></script>
	<body bgcolor="#EDF7F9">
		<br>
		<div align="center">
			<div id="div1" >
			</div>
			<div id="div2" >
			</div>
		</div>
	</body>
</html>

<script type="text/javascript" language="javascript">

////定义第二个Flash控件 时段车流量
swfobject.embedSWF("<%=request.getContextPath()%>/ofc2/open-flash-chart.swf?r="+ Math.random() * 100000, "div1", "44%", "280","9.0.0", "expressInstall.swf", 
 {"data-file" : "<%=request.getContextPath()%>/QjcsfxColumnServlet?sumOverSpeedStr=<%=sumOverSpeedStr%>"}, 
 {wmode : "transparent"}
);

////定义第三个Flash控件 月车流量
swfobject.embedSWF("<%=request.getContextPath()%>/ofc2/open-flash-chart.swf?r="+ Math.random() * 100000, "div2", "44%", "280","9.0.0", "expressInstall.swf", 
 {"data-file" : "<%=request.getContextPath()%>/QjcsfxPieServlet?sumOverSpeedStr=<%=sumOverSpeedStr%>"}, 
 {wmode : "transparent"}
);
</script>
